<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th class="text-center"><div class="table-first-id">ID</div></th>
                <th class="text-center" width="30%">免费直播名称</th>
                <th class="text-center" width="30%">专业/科目</th>
                <th class="text-center" width="30%">开放时间</th>
            </tr>
            </thead>
        </table>
        <div class="J_V_tabContent table-xScrollWrap">
            <table class="table table-bordered table-hover table-xs-content">
                <tbody>
                    <tr class="jqgfirstrow" role="row">
                        <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                        <th class="text-center" width="30%">&nbsp;</th>
                        <th class="text-center" width="30%">&nbsp;</th>
                        <th class="text-center" width="30%">&nbsp;</th>
                    </tr>
                    <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                        <td colspan="10" class="text-center">
                            <div class="noDataTipsBox">
                                <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                            </div>
                        </td>
                    </tr>
                    <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="courseOpen : ${dataMap['list']}">
                        <td class="text-center">
                            <input th:type="${#strings.isEmpty(selectType)}?'checkbox':${selectType}" class="i-checks" name="courseOpenId" th:value="${courseOpen['id']}" />
                        </td>
                        <td class="text-center" th:attrappend="id='courseOpen-name-'+${courseOpen['id']}" th:text="${courseOpen['courseName']}"></td>
                        <td class="text-center" th:attrappend="id='courseOpen-subject-'+${courseOpen['id']}">
                            <th:block th:if="!${#lists.isEmpty(courseOpen['subjectList'])}">
                                <span class="pie" th:each="subject,subIndex : ${courseOpen['subjectList']}">
                                    <th:block th:text="${subject['subjectName']}+'/'"></th:block>
                                    <th:block th:if="!${#lists.isEmpty(subject['childSubjectList'])}" th:each="child,index : ${subject['childSubjectList']}">
                                        <th:block th:if="${index.last} == false" th:text="${child['subjectName']}+'/'"></th:block>
                                        <th:block th:if="${index.last} == true" th:text="${child['subjectName']}"></th:block>
                                    </th:block>
                                    <th:block th:if="${#lists.isEmpty(subject['childSubjectList'])}">全部科目</th:block>
                                    <th:block th:if="${subIndex.last}==false" th:utext="'<br/>'"></th:block>
                                </span>
                            </th:block>
                            <th:block th:if="${#lists.isEmpty(courseOpen['subjectList'])}">
                                <span class="pie">—</span>
                            </th:block>
                        </td>
                        <td class="text-center" th:attrappend="id='courseOpen-time-'+${courseOpen['id']}">
                            <samp th:text="${courseOpen['openTime']}+'/'+${courseOpen['openTime']}"></samp>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- 分页，开始 -->
        <div data-th-replace="layout/adminPage"></div>
        <!-- 分页，结束 -->
    </div>
</html>


